Skip to content

A link with ?code= opens Publish with that voucher code typed in - #1622

Merged
sickerine merged 1 commit into
devfrom
feat/publish-code-link
Nov 28, 2026
Merged

sickerine merged 1 commit into
devfrom
feat/publish-code-link

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

For the publithon at Africa Evidence Week (30 Nov to 4 Dec), attendees get a link in the session like /publish?code=AFEW26. The voucher code then waits in the voucher field, so nobody has to type it.

  • On a new report's agreement step and on a report's checks step, the voucher field opens with the code from the address typed in. Apply is highlighted, as it already is for any typed code.
  • Applying it takes code out of the address.
  • If a report already has a code applied, a linked code never holds back Activate.

Checked: npx tsc --noEmit and npm run check:ui-rules pass. In the browser (this branch on shared dev, verify user):

  • /publish?code=AFEW26, New report, then Sign the agreement shows AFEW26 in the voucher field.
  • /publish?code=AFEW26&report=R100680 shows it in the checks step's field.
  • /publish?code=QAEVENT applied on the agreement step gives 100% off and US$0 due.

Signed out, sign-in is Clerk's modal on the same page, so the code stays in the address. Reviewed by GPT-6.1 Sol, which found nothing to fix.

…e typed in, ready to apply

An event hands attendees a link like /publish?code=AFEW26. The code starts in the voucher field on a new report's agreement and on a report's checks, and leaves the address once applied. A linked code never holds back Activate on a report that already has a code applied.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 74f9bf50-0dcb-4cd7-9370-e33ef895f2f2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T21:23:13.375718Z bdacca0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sickerine
sickerine merged commit 42820fd into dev Nov 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant